<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
    <%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
    <%@ taglib uri="http://java.sun.com/jsp/jstl/fmt"  prefix="fmt"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
</head>
<body>
	<div>
		<form action="tolist" method="post">
			<table>
				<tr>
					<td>公司代码</td>
					<td>公司名称</td>
					<td>烟感设备编号</td>
				</tr>
				<c:forEach items="${clist }" var="a">
				<tr>
					<td>${a.gsdm }</td>
					<td>${a.gsname }</td>
					<td>${a.bh }</td>
				</tr>
				</c:forEach>
			</table>
			<table cellpadding="1" cellspacing="1" border="1">
			<a href="toadd?id=${b.bh}"><input type="button" value="新增"></a>
				<tr>
					<td>行号</td>
					<td>探测时间</td>
					<td>当前温度</td>
					<td>设备状态</td>
					<td>操作</td>
				</tr>
				<c:forEach items="${tlist }" var="b">
				<tr>
					<td>${b.hh }</td>
					<td><fmt:formatDate value="${b.tcdate }" pattern="yyyy-MM-dd"/></td>
					<td>${b.wendu }</td>
					<td>${b.sbtype}</td>
					<td>
						<a href="del?id="><input type="button" value="删除"></a>
					</td>
				</tr>
				</c:forEach>
			</table>
		</form>
	</div>
</body>
</html>